﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiagrammInternalStructure.Exceptions
{
    public class EmptyFunctionAlredyFoundException:Exception
    {
        public const string CLASS_TAG = "<class>";
        public const string FUNCTION_TAG = "<function>";
        const string MESSAGE = "Class " + CLASS_TAG + " already includes function called " + FUNCTION_TAG + " with empty signature";

        public EmptyFunctionAlredyFoundException(string functionName, string className)
            : base(MESSAGE.Replace(CLASS_TAG, className).Replace(FUNCTION_TAG, functionName))
        {
            
        }

        public EmptyFunctionAlredyFoundException(string message)
            : base(message)
        { 
        
        }
    }
}
